package so.bookFromLibrary;

import ivan.bookKeeper.R;
import domain.BookFromLibrary;
import android.content.Context;
import so.GeneralSystemOperation;

public class AddBookFromLibrary extends GeneralSystemOperation {

	public AddBookFromLibrary(Context context) {
		super(context);		
	}

	@Override
	protected Object doInBackground(Object... params) {
		BookFromLibrary bfl = (BookFromLibrary) params[0];
		dbHandler.insertObject(bfl);
		toastMessage = BookFromLibrary.class.getSimpleName() + context.getString(R.string.toastMessage_success_add);
		return null;
	}
}
